<template>
  <!-- 创建组件时使用驼峰命名，调用组件的时候需要将驼峰改为横线-写法 -->
    <tab-bar>
      <tab-bar-item path="/home">
        <img slot="item-icon" src="~assets/img/tabbar/home.svg" alt="">
        <img slot="item-icon-active" src="~assets/img/tabbar/homeClicked.svg" alt="">
        <div slot="item-text">首页</div>
      </tab-bar-item>
      <tab-bar-item path="/catalogue">
        <img slot="item-icon" src="~assets/img/tabbar/catalogue.svg" alt="">
        <img slot="item-icon-active" src="~assets/img/tabbar/catalogueClicked.svg" alt="">
        <div slot="item-text">分类</div>
      </tab-bar-item>
      <tab-bar-item path="/shoppingcart">
        <img slot="item-icon" src="~assets/img/tabbar/shoppingcart.svg" alt="">
        <img slot="item-icon-active" src="~assets/img/tabbar/shoppingcartClicked.svg" alt="">
        <div slot="item-text">购物车</div>
      </tab-bar-item>
      <tab-bar-item path="/profile">
        <img slot="item-icon" src="~assets/img/tabbar/mine.svg" alt="">
        <img slot="item-icon-active" src="~assets/img/tabbar/mineClicked.svg" alt="">
        <div slot="item-text">我的</div>
      </tab-bar-item>
    </tab-bar>
</template>

<script>
import tabBar from 'components/common/tabbar/tabBar'
import tabBarItem from 'components/common/tabbar/tabBarItem'

export default {
  name: "mainTabBar",
  components: {
    tabBar,
    tabBarItem
  }
}
</script>

<style scoped>

</style>